<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" target="hide_form" method="post" action="">
            {empty name="parent_id"}
            <div class="layui-form-item">
                <label class="layui-form-label">上级菜单</label>
                <div class="layui-input-block">
                    <select name="parent_id" id="parent_id"  lay-filter="selectDemo" lay-verify="required">
                        <option value="0">一级菜单</option>
                        {foreach name="top_list" item="val"}
                        <option value="{$val.menu_id}">{$val.menu_name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            {/empty}
            <div class="layui-form-item">
                <label class="layui-form-label">菜单名称</label>
                <div class="layui-input-block">
                    <input type="text" name="menu_name" value="{$oldData.menu_name|default=''}" required lay-verify="required" placeholder="请输入菜单名称" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">应用：</label>
                <div class="layui-input-block">
                    <input type="text" name="menu_action" value="{$oldData.menu_action|default=''}" placeholder="请输入方法" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">排序</label>
                <div class="layui-input-block">
                    <input type="text" name="sort" required lay-verify="required" value="{$oldData.sort|default='100'}" placeholder="请输入排序" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-block">
                    <input type="radio" name="is_show" value="1" title="显示" {eq name="oldData.is_show|default=1" value="1"} checked {/eq} >
                    <input type="radio" name="is_show" value="0" title="隐藏" {eq name="oldData.is_show|default=1" value="0"} checked {/eq} >
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <input type="hidden" name="parent_id" value="{$parent_id|default=''}">
                    <input type="hidden" name="menu_id" value="{$oldData.menu_id|default=''}">
                    <input type="submit" class="layui-btn layui-btn-normal" value="立即保存" />
                </div>
            </div>
        </form>
    </div>
</div>